pros="liad-modules:liad-user,liad-modules:liad-order"
#要将$a分割开，可以这样：
OLD_IFS="$IFS"
IFS=","
proArr=($pros)
IFS="$OLD_IFS"
for pro in ${proArr[@]}
do

	OLD_IFS="$IFS"
	IFS=":"
	proParamArr=($pro)
    IFS="$OLD_IFS"
	path=${proParamArr[0]}
	name=${proParamArr[1]}
    
    docker rmi -f $name:1.0
    docker build -t $name:1.0 --build-arg JAR_FILE=./$path$name/target/$name-1.0.0.jar -f ./$path$name/Dockerfile .
    docker run -d $name:1.0
    
done


echo MYSQL_HOST: 192.168.48.135 \
  NACOS_HOST: 192.168.48.134 \
  REDIS_HOST: 192.168.48.137 \
  MINIO_HOST: 192.168.48.136  /agent/bin >> ./$path$name/src/main/resources/bootstrap.yml